'''
Created on 2011-07-18

@author: Mikael
'''


mStyleSheet = '''
/*************************************** QWidget***************************************/
QWidget 
{
        color: #EFEFEF;
        font-size: 14px;
        background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #929292, stop: 0.01 #535353, stop: 0.02 #4C4545, stop: 0.2     #393636, stop: 1 #1E1E1E);
}

/*************************************** ComponentWidget***************************************/

/*ComponentWidget: 
{
    background-color: yellow;
}*/

/*************************************** QComboBox***************************************/
QComboBox {
     border: 1px solid black;
     border-radius: 3px;
     padding: 1px 18px 1px 3px;
     min-width: 6em;
 }

 QComboBox:editable {
      border-radius: 3px;
     padding: 1px 18px 1px 3px;
     min-width: 6em;
     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #4F4F4F stop: 1 #000000,);
 }

QComboBox:!editable, QComboBox::drop-down:editable {
      background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                  stop: 0 #6C6D6D, stop: 0.4 #616161,
                                  stop: 0.5 #494949, stop: 1.0 #333333);
 }


 /* QComboBox gets the "on" state when the popup is open */
 QComboBox:!editable:on, QComboBox::drop-down:editable:on {
      background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                  stop: 0 #848484, stop: 0.45 #737373,
                                  stop: 0.55 #494949, stop: 1.0 #333333);
 }

 QComboBox:on { /* shift the text when the popup opens */
     padding-top: 3px;
     padding-left: 4px;
 }

 QComboBox::drop-down {
     subcontrol-origin: padding;
     subcontrol-position: top right;
     width: 15px;

     border-left-width: 1px;
     border-left-color: darkgray;
     border-left-style: solid; /* just a single line */
     border-top-right-radius: 3px; /* same radius as the QComboBox */
     border-bottom-right-radius: 3px;
 }

/* QComboBox::down-arrow {
     image: url(/usr/share/icons/crystalsvg/16x16/actions/1downarrow.png);
 }*/

 QComboBox::down-arrow:on { /* shift the arrow when popup is open */
     top: 1px;
     left: 1px;
 }


/*************************************** QScrollBar HORIZONTAL***************************************/
QScrollBar:horizontal 
{
     border: 2px solid black;
     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #4F4F4F stop: 1 #000000,);
     height: 15px;
     margin: 0px 20px 0 20px;
}

QScrollBar::handle 
{
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #4F4F4F stop: 0.5 #B8B8B8 stop: 1 #000000,);
    border: 1px solid black;
    min-width: 20px;
}

QScrollBar::handle:hover 
{
     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #4F4F4F stop: 0.5 #009BCF stop: 1 #000000,);
    border: 1px solid black;
    min-width: 20px;
 }



         
QScrollBar::add-line:horizontal 
{
    border: 2px solid black;
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #4F4F4F stop: 0.5 #717171 stop: 1 #000000,);
    width: 20px;
    subcontrol-position: right;
    subcontrol-origin: margin;
 }

QScrollBar::add-line:horizontal:hover
 {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #4F4F4F stop: 0.5 #009BCF stop: 1 #000000,);
 }
        
QScrollBar::sub-line:horizontal 
{
             width: 20px;
             border: 2px solid black;
             subcontrol-position: left;
             subcontrol-origin: margin;
             background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #4F4F4F stop: 0.5 #717171 stop: 1 #000000,);
}

QScrollBar::sub-line:horizontal:hover 
{
             background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #4F4F4F stop: 0.5 #009BCF stop: 1 #000000,);
 }

QScrollBar:left-arrow:horizontal, QScrollBar::right-arrow:horizontal 
{
            background: None;
}
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal 
{
            background: None;
}
/*************************************** QScrollBar VERTICAL***************************************/
QScrollBar:vertical
 {
            border: 2px solid black;
            background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #4F4F4F stop: 1 #000000,);
            width: 15px;
            margin: 20px 0px 20px 0px;
}

QScrollBar::handle:vertical 
{
             background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #4F4F4F stop: 0.5 #B8B8B8 stop: 1 #000000,);
            border: 1px solid black;
            min-height: 20px;
 }

QScrollBar::handle:vertical:hover 
{
             background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #4F4F4F stop: 0.5 #009BCF stop: 1 #000000,);
            border: 1px solid black;
            min-height: 20px;
}

QScrollBar::add-line:vertical 
{
             border: 2px solid black;
             background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #4F4F4F stop: 0.5 #717171 stop: 1 #000000,);
             height: 20px;
             subcontrol-position: bottom;
             subcontrol-origin: margin;
}
        
QScrollBar::sub-line:vertical 
{
             height: 20px;
             border: 2px solid black;
             subcontrol-position: up;
             subcontrol-origin: margin;
             background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #4F4F4F stop: 0.5 #717171 stop: 1 #000000,);

}

 QScrollBar::add-line:vertical:hover 
{
            background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #4F4F4F stop: 0.5 #009BCF stop: 1 #000000,);
}
        
QScrollBar::sub-line:vertical:hover
 {
             background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #4F4F4F stop: 0.5 #009BCF stop: 1 #000000,);

}

QScrollBar:left-arrow:vertical, QScrollBar::right-arrow:vertical
 {
            background: None;
 }
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
 {
            background: None;
}
        
/*************************************** QFrame***************************************/
 QFrame 
{

        background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #929292, stop: 0.01 #535353, stop: 0.02 #4C4545, stop: 0.2 #393636, stop: 1 #1E1E1E);
}

/*************************************** QDockWidget***************************************/
QDockWidget 
{
    border-color: black;
    color: white;
 }
        
QDockWidget::title 
{
             background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #BCBCBC, stop: 0.01 #A3A3A3, stop: 0.02 #868686, stop: 0.2 #393636, stop: 1 #2A2A2A);
             text-align: left; /* align the text to the left */
             padding-left: 5px;
             border: none;
             color: white;
}
         

/*************************************** QLabel***************************************/
QLabel { background-color: transparent; }
         
         /*QImage {
             background-color: transparent;
             background: transparent;
         }
         
         QPicture {
             background-color: transparent;
             background: transparent;
         }*/
        
        
         /*QDockWidget::close-button, QDockWidget::float-button {
             border: 1px solid transparent;
             background: darkgray;
             padding: 0px;
         }
        
         QDockWidget::close-button:hover, QDockWidget::float-button:hover {
             background: gray;
         }
        
         QDockWidget::close-button:pressed, QDockWidget::float-button:pressed {
             padding: 1px -1px -1px 1px;
         }*/
         
/***************************************QSplitter***************************************/
         
QSplitter::handle 
{
     /*image: url(images/splitter.png);*/
}

QSplitter::handle:horizontal 
{
    background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #000000, stop: 0.1 #000000, stop: 0.49 #4F4F4F, stop: 0.5 #3F3F3F, stop: 1 #000000);
     width: 10px;
}

QSplitter::handle:horizontal:hover
{
    background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #005A75, stop: 0.1 #005A75, stop: 0.49 #4F4F4F, stop: 0.5 #3F3F3F, stop: 1 #005A75);
     width: 10px;
}

 QSplitter::handle:vertical 
 {
     background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #000000, stop: 0.1 #000000, stop: 0.49 #4F4F4F, stop: 0.5 #3F3F3F, stop: 1 #000000);
     height: 10px;
 }
 
QSplitter::handle:vertical:hover
 {
     background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #005A75, stop: 0.1 #005A75, stop: 0.49 #4F4F4F, stop: 0.5 #3F3F3F, stop: 1 #005A75);
     height: 10px;
 }

 QSplitter::handle:pressed 
 {
     /*url(images/splitter_pressed.png);*/
 }
        
/*************************************** QMainWindow***************************************/
        QMainWindow::separator {
             background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #000000, stop: 0.1 #000000, stop: 0.49 #4F4F4F, stop: 0.5 #3F3F3F, stop: 1 #000000);
             width: 10px; /* when vertical */
             height: 10px; /* when horizontal */
         }
        
         QMainWindow::separator:hover {
             background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #005A75, stop: 0.1 #005A75, stop: 0.49 #4F4F4F, stop: 0.5 #3F3F3F, stop: 1 #005A75);
         }
         
         
         
             
/*************************************** QPushButton***************************************/
        QPushButton:hover {
             color: white;
        background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #919191, stop: 0.1 #6E6E6E, stop: 0.49 #4F4F4F, stop: 0.5 #3F3F3F, stop: 1 #005A75);
        border-width: 1px;
        border-color: #5A5A5A;
        border-style: solid;
        border-radius: 7;
        padding: 3px;
        font-size: 10px;
        padding-left: 5px;
        padding-right: 5px;
        min-width: 5px;
        max-width: 1000px;
        min-height: 5px;
        max-height: 1000px;
         }
        
        QPushButton:pressed {
             color: white;
        background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #919191, stop: 0.3 #6E6E6E, stop: 0.7 #4F4F4F, stop: 0.71 #3F3F3F, stop: 1 #005A75);
        border-width: 1px;
        border-color: #5A5A5A;
        border-style: solid;
        border-radius: 7;
        padding: 3px;
        font-size: 10px;
        padding-left: 5px;
        padding-right: 5px;
        min-width: 5px;
        max-width: 1000px;
        min-height: 5px;
        max-height: 1000px;
        
        }
        
        
        QPushButton {
        color: white;
        background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #919191, stop: 0.1 #6E6E6E, stop: 0.49 #4F4F4F, stop: 0.5 #3F3F3F, stop: 1 #000000);
        border-width: 1px;
        border-color: #5A5A5A;
        border-style: solid;
        border-radius: 7;
        padding: 3px;
        font-size: 10px;
        padding-left: 5px;
        padding-right: 5px;
        min-width: 5px;
        max-width: 1000px;
        min-height: 5px;
        max-height: 1000px;
        }

/*************************************** QMenu***************************************/

        QMenuBar {
        color: white;
        background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #929292, stop: 0.01 #535353, stop: 0.02 #4C4545, stop: 0.2 #393636, stop: 1 #000000);
        }
        
        QAction {
        color: white;
        background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #929292, stop: 0.01 #535353, stop: 0.02 #4C4545, stop: 0.2 #393636, stop: 1 #000000);
        }
        
/*************************************** ComponentWidget***************************************/
        ComponentWidget {
        border-width: 1px;
        border-color: transparent;
        border-style: solid;
        border-radius: 1;
        }
/*************************************** QGroupBox***************************************/
        QGroupBox {
        background-color: transparent;
        background: transparent;
        }
        
/*************************************** TextWidget***************************************/
        TextWidget {
        color: white;
        background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #919191, stop: 0.1 #6E6E6E, stop: 0.49 #4F4F4F, stop: 0.5 #3F3F3F, stop: 1 #005A75);
        border-width: 1px;
        border-color: #5A5A5A;
        border-style: solid;
        border-radius: 7;
        padding: 3px;
        font-size: 10px;
        padding-left: 5px;
        padding-right: 5px;
        min-width: 5px;
        max-width: 1000px;
        min-height: 5px;
        max-height: 1000px;
        }
        
/*************************************** QTreeView***************************************/
         QTreeView {
             selection-background-color: transparent;
             show-decoration-selected: 1;
             selection-color: white;
             alternate-background-color: transparent;
         }
        
         /*QTreeView::item {
              border: 1px solid #d9d9d9;
             border-top-color: transparent;
             border-bottom-color: transparent;
         }*/
        
         QTreeView::item:hover {
             background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #4F4F4F stop: 1 #000000,);
             border: 1px solid #bfcde4;
             border-color: black;
             background-color:transparent;
         }
        
         QTreeView::item:selected {
             background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #4F4F4F stop: 0.5 #717171 stop: 1 #000000,);
             /*border: 1px solid #567dbc;*/
         }
        
         QTreeView::item:selected:active{
             background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #4F4F4F stop: 0.5 #717171 stop: 1 #000000,);
         }
        
         QTreeView::item:selected:!active {
             color: #EFEFEF;
             qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #000000 stop: 0.5 #717171 stop: 1 #000000,);
         }
         
         QTreeView::branch {
             background: palette(base);
         }
        
         QTreeView::branch:has-siblings:!adjoins-item {
                 background: black;
         }
        
         QTreeView::branch:has-siblings:adjoins-item {
                 background: black;
         }
        
         QTreeView::branch:!has-children:!has-siblings:adjoins-item {
                 background: black;
         }
        
         QTreeView::branch:closed:has-children:has-siblings {
                 background: black;
         }
        
         QTreeView::branch:has-children:!has-siblings:closed {
                 background: black;
         }
        
         QTreeView::branch:open:has-children:has-siblings {
                 background: black;
         }
        
         QTreeView::branch:open:has-children:!has-siblings {
                 background: black;
         }
        
        QTreeView::branch:has-siblings:!adjoins-item {
             /* border-image: url(vline.png) 0; */
         }
        
         QTreeView::branch:has-siblings:adjoins-item {
             /* border-image: url(branch-more.png) 0;*/
         }
        
         QTreeView::branch:!has-children:!has-siblings:adjoins-item {
             /* border-image: url(branch-end.png) 0;*/
         }
        
         /*QTreeView::branch:has-children:!has-siblings:closed,
         QTreeView::branch:closed:has-children:has-siblings {
                 border-image: none;
                 image: url(branch-closed.png);
         }*/
        
         QTreeView::branch:open:has-children:!has-siblings,
         QTreeView::branch:open:has-children:has-siblings  {
                 border-image: none;
                 /* image: url(branch-open.png);*/
         }
         
         

         
          
        
         '''